/*
 * SmartCam master processor library
 * Coprocessor mapping evaluation.
 */

#ifndef __EVALUATE_H_INCLUDED
#define __EVALUATE_H_INCLUDED

#ifdef __cplusplus
extern "C" {
#endif

#define SC_EVL_CHANGED 1
#define SC_EVL_EPSILON 0.001

double scEvlMapping(double iop);
void scEvlInit(void);
void scEvlPropagate(int selector);
void scEvlBoundMaxUsage(void);
void scEvlBoundMinUsage(void);
int scEvlCompareMaxFraction(const void* p1, const void *p2);
int scEvlCompareMaxBandwidth(const void* p1, const void *p2);
void scEvlPrint(void);
void scEvlBackupFractions(void);
double scEvlCompareFractionsToBackup(void);
double scEvlRootMin(void);
double scEvlMappingUnrelated(void);

#ifdef __cplusplus
}
#endif

#endif /* __EVALUATE_H_INCLUDED */
